/**
 * @Author: cest cestrmail@163.com
 * @Date: 2023-01-06 10:05:00
 * @LastEditors: cest cestrmail@163.com
 * @LastEditTime: 2023-01-30 09:01:30
 * @FilePath: /sbm-portal-lite/src/api/index/index.js
 * @Description: 首页请求后端的接口
 */

import { useApi } from '@/service'

const api = useApi()

/**
 * 获取轮播图
 * @param {*} params
 * @returns
 */
export const getBannerSwiperList = (params = { newsType: '轮播图', type: 2 }) => api.get('/system/sys-news/list', params)

/**
 * 获取今日推荐
 * @param {*} params
 * @returns
 */
export const getTodayRecommendedProjectList = params => api.post('/wxInfo/todayRecommendedProject',params)

/**
 * 成功案例
 * @param {*} params
 * @returns
 */
export const getSuccessCaseList = params => api.post('/wxInfo/successCases',params)


/**
 * 文件上传
 * @param {*} params
 * @returns
 */
export const assign_addAppendix = params => api.post(`/user/system/res-attachment/upload`, params)

